<div>
	<ul class="breadcrumb">
        <li>My Account</li>
        <li class="active">My Product</li>
    </ul>
	<div class="toolbar">
        <div class="sortby">
            <label>Sort by :</label>
            <select id="account_topsortby">
				<option value="name">NAME</option>
                <option value="price">PRICE</option>
            </select>
        </div>
        <div class="show_no">
            <label>Show :</label>
            <select id="account_topshownumber">
            	<option value="9">9 ITEMS</option>
                <option value="12">12 ITEMS</option>
                <option value="24">24 ITEMS</option>
            </select>
        </div>
		<div>
			<button type="button" onClick="show_accountbyfiltertop()" id="account_submitfiltertop" class="button_show">Show</button>
		</div>
		<div style="float:right;" id="pagination">
			<?php echo $pagination_bottom; ?>
		</div>
    </div>
  <div class="cart_table">
    <table class="data-table cart-table" id="shopping-cart-table" cellpadding="0" cellspacing="0">
      <tr>
        <th colspan="2">Products</th>
        <th class="align_center"></th>
      </tr>
	  <?php
		$i=0;
		if(sizeof($product_havebought > 0) && $product_havebought !== ''){
			foreach($product_havebought as $row_cart){
				echo '<tr>';
				echo '<input type="hidden" id="hide_produkid" value="' . $row_cart->produk_id . '">';
				echo '<td width="10%"><img src="' . base_url() . 'uploads/images/' . $row_cart->produk_sampul . '" style="height:100px; width:auto;"></td>';
				echo '<td class="align_left" width="70%"><a class="pr_name" href="#" onclick="view_singleproduct('. $row_cart->produk_id .')">' . $row_cart->produk_nama . '</a><!--<span class="pr_info">Proin gravida </span>--></td>';
				echo '<td class="align_center vline" width="20%"><div class="price_info">';
				echo '<button class="price_add" title="" type="button" onclick="viewdownload('. $row_cart->produk_id .')"><span class="pr_price">Download</span><span class="pr_add">Download</span></button>';
				echo '</div></td>';
				echo '</tr>';
				$i++;
			}
		}
	  ?>
    </table>
  </div>
    <div class="toolbar">
        <div class="sortby">
            <label>Sort by :</label>
            <select id="account_bottomsortby">
				<option value="name">NAME</option>
                <option value="price">PRICE</option>
            </select>
        </div>
        <div class="show_no">
            <label>Show :</label>
            <select id="account_bottomshownumber">
            	<option value="9">9 ITEMS</option>
                <option value="12">12 ITEMS</option>
                <option value="24">24 ITEMS</option>
            </select>
        </div>
		<div>
			<button type="button" onClick="show_accountbyfilterbottom()" id="account_submitfilterbottom" class="button_show">Show</button>
		</div>
		<div style="float:right;" id="pagination">
			<?php echo $pagination_bottom; ?>
		</div>
    </div>
</div>
<script language="javascript">
	var view_singleproduct = null;
</script>
<script>
$(document).ready(function(){
	function view_singleproduk(pid){
		my_config.main.load('index.php/c_singleproduct?product_id=' + pid);
		return false;
	}
	view_singleproduct = view_singleproduk;
});
</script>